import request from '@/utils/request'

// 查询短信帐号列表
export function listSmsaccount(query) {
  return request({
    url: '/Sms/Smsaccount/list',
    method: 'get',
    params: query
  })
}

// 查询短信帐号详细
export function getSmsaccount(id) {
  return request({
    url: '/Sms/Smsaccount/' + id,
    method: 'get'
  })
}

// 新增短信帐号
export function addSmsaccount(data) {
  return request({
    url: '/Sms/Smsaccount',
    method: 'post',
    data: data
  })
}

// 修改短信帐号
export function updateSmsaccount(data) {
  return request({
    url: '/Sms/Smsaccount',
    method: 'put',
    data: data
  })
}

// 删除短信帐号
export function delSmsaccount(id) {
  return request({
    url: '/Sms/Smsaccount/' + id,
    method: 'delete'
  })
}
